package com.da.javatest.niuke.baodian;

/**
 * @author chenlida
 * @date 2020/10/9 10:04
 * https://www.nowcoder.com/practice/c7df20a5a39e4357aecc1071e7fd523c?tpId=8&tags=&title=&diffculty=0&judgeStatus=0&rp=1
 */
public class C29Transform {
    /**
     * 10:1010 5:0101
     */
    public static int calcCost(int A, int B) {
        return Integer.bitCount(A ^ B);
    }

    public static void main(String[] args) {
        System.out.println(calcCost(19114, 17568));
    }
}
